﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.OOP.Inhertance___Polimophism.SAMPLES.SAMPLES_03
{
    class CHIENBINH: NGUOI
    {
        int NoiLuc, KhangDoc;

        public CHIENBINH()
        { }

        public CHIENBINH(int tay, int chan, string mauda, string thucan, int noiluc, int khangdoc, string binhkhi, string aogiap): base(tay, chan, mauda, thucan)
        {
            NoiLuc = noiluc;
            KhangDoc = khangdoc;
            BinhKhi = binhkhi;
            AoGiap = aogiap;
        }
        public int KHANGDOC
        {
            get { return KhangDoc; }
            set { KhangDoc = value; }
        }

        public int NOILUC
        {
            get { return NoiLuc; }
            set { NoiLuc = value; }
        }
        string BinhKhi, AoGiap;

        public string AOGIAP
        {
            get { return AoGiap; }
            set { AoGiap = value; }
        }

        public string BINHKHI
        {
            get { return BinhKhi; }
            set { BinhKhi = value; }
        }
        public int tancong()
        {
            return 150;
        }
    }
}
